package com.dragon.cloud.zconf.util;


public class ZConfConstant {
    // fixed file name
    public final static String ZCONF_LOCAL_PROPERTIES_PATH = "/ZConf.properties";
    public final static String MAIN_SETTING_WEB_PROPERTIES = "/conf/main-setting-web.properties";

    public final static String ROOT_NODE_PATH = "/";
    // public static final String FILE_PATH = System.getProperty("user.dir");
    public static final String CONFIG_STORE_FILE_PATH = "/opt/application";
    public static final String CONFIG_FILE_PATH = "/zconf";
    // refresh timer thread name.
    public final static String ZCONF_REFRESH_NODE_VALUE_THREAD = "ZCONF_REFRESH_NODE_VALUE_THREAD";
    // thirty minute . microsecond number.
    public final static long THIRTY_MINUTE = 30 * 60 * 1000;
    // two hour . microsecond number.
    public final static long TWO_HOUR = 2 * 60 * 60 * 1000;
    // app root level.
    public final static int APP_ROOT_LEVEL = 2;

    // create
    public static final String CONFIG_OPERATION_CREATE = "create";
    // update
    public static final String CONFIG_OPERATION_UPDATE = "update";
    // delete
    public static final String CONFIG_OPERATION_DELETE = "delete";

    // fail string
    public static final String MESSAGE_FAIL = "fail";
    // success string
    public static final String MESSAGE_SUCCESS = "success";

    public static final String DEFAULT_VALUE = "";
}
